package com.weiyuwqj.api.model;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Table(name = "sys_log")

public class SysLog implements Serializable{
    @Id
    private Integer id;

    @Column(name = "user_id")
    private Integer userId;

    private String code;

    /**
     * 操作类型
     */
    private Integer type;

    private String operating;

    /**
     * 操作结果(1.成功 0.失败)
     */
    private Integer result;

    private Date addtime;

    private String addip;

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * @return user_id
     */
    public Integer getUserId() {
        return userId;
    }

    /**
     * @param userId
     */
    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    /**
     * @return code
     */
    public String getCode() {
        return code;
    }

    /**
     * @param code
     */
    public void setCode(String code) {
        this.code = code;
    }

    /**
     * 获取操作类型
     *
     * @return type - 操作类型
     */
    public Integer getType() {
        return type;
    }

    /**
     * 设置操作类型
     *
     * @param type 操作类型
     */
    public void setType(Integer type) {
        this.type = type;
    }

    /**
     * @return operating
     */
    public String getOperating() {
        return operating;
    }

    /**
     * @param operating
     */
    public void setOperating(String operating) {
        this.operating = operating;
    }

    /**
     * 获取操作结果(1.成功 0.失败)
     *
     * @return result - 操作结果(1.成功 0.失败)
     */
    public Integer getResult() {
        return result;
    }

    /**
     * 设置操作结果(1.成功 0.失败)
     *
     * @param result 操作结果(1.成功 0.失败)
     */
    public void setResult(Integer result) {
        this.result = result;
    }

    /**
     * @return addtime
     */
    public Date getAddtime() {
        return addtime;
    }

    /**
     * @param addtime
     */
    public void setAddtime(Date addtime) {
        this.addtime = addtime;
    }

    /**
     * @return addip
     */
    public String getAddip() {
        return addip;
    }

    /**
     * @param addip
     */
    public void setAddip(String addip) {
        this.addip = addip;
    }
}